package com.cqut.forum.service;

import java.util.List;
import java.util.Map;

import com.cqut.forum.entity.PictureGroup;

/**
 * 图片服务接口
 * @author yangxun
 */
public interface PictureGroupService {
	public List<PictureGroup> getGroups(int userId);
	public List<Map<String,Object>> getSysteGroups();
	public List<Map<String,Object>> getShowGroups();
	
	public PictureGroup getGroupById(int groupId);
	
	public PictureGroup getGroupByName(int userId,String groupName);
	
	public List<Map<String, Object>> getGroupsLikeName(String groupName);
	
	public PictureGroup update(PictureGroup pg);
	
	public PictureGroup insert(PictureGroup pg);
	
	public boolean updateGroupName(int groupId,String groupName,boolean state);
	
	public PictureGroup delete(int pgId);
	
	public Boolean exist(int userId,String pgName);
	
	public int getGroupId(int pictureId);
}
